<template>
  <div @click="back">点我返回登入</div>
</template>

<script lang = 'ts'>

import {defineComponent} from 'vue'
import router from '@/router'
export default defineComponent({

    setup() {
        const back = ()=>{
            router.push("/login")
        }
        return{
            back
        }
    }
})

</script>

<style lang='scss' scoped>

</style>